//导入vue-router
import {createRouter,createWebHashHistory} from 'vue-router'
//创建路由
const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/',
            component: () => import('./views/Home.vue')
        },
        {
            path: '/about',
            component: () => import('./views/About.vue')
        }
    ]
})